<?php
class FileLib
{
    private function __construct()
    {

    }
   
    public static function formatFilesize($s)
    {
        if(intval($s) > 1073741824) {
            return round(intval($s) / 1073741824, 1) . 'GiB';
        }
        return intval(intval($s) / 1048576) . 'MiB';
    }
}
?>
